/*
*编写迭代器需找和删除string对象中所有的大写字符
*/
#include <iostream>
#include <string>
using namespace std;


int main()
{
	string str("HelloWorld");
	for(string::iterator iter = str.begin();iter != str.end();++iter)
	{
		if(*iter >= 'A' && *iter <= 'Z')
		{
			str.erase(iter);
		}
	}

	string::iterator iter = str.begin();
	while(iter != str.end())
	{
		cout << *iter;
		iter++;
	}

	cout << endl;
	system("pause");
	return 0;
}